// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.systemsjr.jrtim.question;
/**
 * @see com.systemsjr.jrtim.question.Question
 */
public class QuestionDaoImpl
    extends com.systemsjr.jrtim.question.QuestionDaoBase
{
    /**
     * @see com.systemsjr.jrtim.question.QuestionDao#toQuestionVO(com.systemsjr.jrtim.question.Question, com.systemsjr.jrtim.question.vo.QuestionVO)
     */
    public void toQuestionVO(
        com.systemsjr.jrtim.question.Question source,
        com.systemsjr.jrtim.question.vo.QuestionVO target)
    {
        // @todo verify behavior of toQuestionVO
        super.toQuestionVO(source, target);
    }


    /**
     * @see com.systemsjr.jrtim.question.QuestionDao#toQuestionVO(com.systemsjr.jrtim.question.Question)
     */
    public com.systemsjr.jrtim.question.vo.QuestionVO toQuestionVO(final com.systemsjr.jrtim.question.Question entity)
    {
        // @todo verify behavior of toQuestionVO
        return super.toQuestionVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.systemsjr.jrtim.question.Question loadQuestionFromQuestionVO(com.systemsjr.jrtim.question.vo.QuestionVO questionVO)
    {
        // @todo implement loadQuestionFromQuestionVO
        throw new java.lang.UnsupportedOperationException("com.systemsjr.jrtim.question.loadQuestionFromQuestionVO(com.systemsjr.jrtim.question.vo.QuestionVO) not yet implemented.");

        /* A typical implementation looks like this:
        com.systemsjr.jrtim.question.Question question = this.load(questionVO.getId());
        if (question == null)
        {
            question = com.systemsjr.jrtim.question.Question.Factory.newInstance();
        }
        return question;
        */
    }

    
    /**
     * @see com.systemsjr.jrtim.question.QuestionDao#questionVOToEntity(com.systemsjr.jrtim.question.vo.QuestionVO)
     */
    public com.systemsjr.jrtim.question.Question questionVOToEntity(com.systemsjr.jrtim.question.vo.QuestionVO questionVO)
    {
        // @todo verify behavior of questionVOToEntity
        com.systemsjr.jrtim.question.Question entity = this.loadQuestionFromQuestionVO(questionVO);
        this.questionVOToEntity(questionVO, entity, true);
        return entity;
    }


    /**
     * @see com.systemsjr.jrtim.question.QuestionDao#questionVOToEntity(com.systemsjr.jrtim.question.vo.QuestionVO, com.systemsjr.jrtim.question.Question)
     */
    public void questionVOToEntity(
        com.systemsjr.jrtim.question.vo.QuestionVO source,
        com.systemsjr.jrtim.question.Question target,
        boolean copyIfNull)
    {
        // @todo verify behavior of questionVOToEntity
        super.questionVOToEntity(source, target, copyIfNull);
    }

}